<template>
  <div>
    <div><el-button @click="showaddwindow" type="primary">添加</el-button></div>
    <list></list>
    <forms :obj="obj"></forms>
  </div>
</template>

<script>
//混入：
import mixinfo from "../../mixin/mixins.js";
import list from "./component/list.vue";
import forms from "./component/form.vue";


export default {
   mixins:[mixinfo],
   data(){
    return {
        // obj:{
        //     isshow:false  //是否显示添加/修改的对话框
        // }
    }
   },
   components:{
    list,
    forms
   },
   methods:{
    showaddwindow(){
      this.obj.isshow = true;
    }
   }
}
</script>

<style>

</style>